<?php
/**
 * Short Description  
 *
 * Long Description 
 *
 * @category   
 * @package    
 * @subpackage 
 * @copyright 
 * @author     Sandeep Manne<sandeep.manne@costrategix.com>
 */

class Core_Model_Singleton
{
	protected static $_instance = null;
	
	protected function __construct()
	{}

	public function getInstance($new = false, $cache = false)
	{
		//TODO save object in some cache
		if ($new === true || self::$_instance === null) {
			self::$_instance = new self();
		}
		return self::$_instance; 
	}
}